import '@/assets/main.scss'
import pinia from '@/stores/index'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// import elFormRenderer from 'el-form-renderer-vue3'
import elFormRenderer from './components/femessage/el-form-renderer.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app = createApp(App)
// app.use(elFormRenderer)
app.component('elFormRenderer', elFormRenderer)
app.use(pinia)

app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus, {
  locale: zhCn
})
app.mount('#app')
